package homework.valid.validators.parser;

public class IntegerParser extends ValueParser {

    public IntegerParser(String msg) {
        super(msg);
    }

    @Override
    public Object parse(Object v) throws Exception {
        return Integer.parseInt((String)v);
    }
}
